<template>
  <div class="myContainer">
    <!-- 头部标题 start -->  
    <el-row class="myHeadeTitle">
      <el-col :span="10" class="myLineHeight_35px">
        {{title}}
      </el-col>
      <el-col :span="14" class="myTextAlignRight">
        <!-- <el-button type="primary" class="myBgGreen" >新增</el-button> -->
      </el-col>
    </el-row>
    <el-row class="mymarginTop_10px">
      <el-col :span="24">
        <iframe id="iframe" name="iframe" frameborder="0" src="http://www.kdniao.com/JSInvoke/OnlineOrder.aspx" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="auto" allowfullscreen="true"></iframe>
      </el-col>
    </el-row>
  </div>
</template>  

<style scoped>
  .myContainer{
    background: #fff;
    padding: 10px;
  }
  .myHeadeTitle{
    color: #000;
    font-weight: 500;
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dbdbdb;
    margin-bottom:10px; 
  }
  .myHeadeTitle:before,.myHeadeTitle:after{
    content: " ";
    display: block;
    clear: both;
  }
  .myBgGreen{
    background: #00c2a9;
    border-color: #00c2a9;
    color: #fff;
    margin-top: 2px;
  }
  .myLineHeight_35px{
    line-height: 35px;
  }
  .myTextAlignRight{
    text-align: right;
  }
  .myBgGreen:hover{
    background: #33ceba;
  }
  .myPaddingTop_10px{
    padding-top: 10px;
  }  
  .myLeftMsg{
    line-height: 40px;
    text-align: right;
    padding-right: 10px;
  }
  .myPaddingBottom_10px{
    padding-bottom: 10px;
  }
  .myVA_M{
    vertical-align: middle;
  }
  .myPadding_20px{
    padding: 20px;
  }
  .myDialogSearchText{
    width: 360px;
  }
  .myLineHeight_45px{
    line-height: 45px;    
  }
  .myOV_y_400px{
    max-height: 400px;
    min-height: 200px;
    overflow-y:scroll;
  }
  .mymarginTop_10px{
    margin-top: 10px;
  }
  #iframe{
    width: 100%;
    height: auto;  
  }
</style>

<script>
  export default {
    data(){
      return{
        title:"预约寄件"
      }
    },
    mounted(){
      let vm=this;
      document.title = vm.title;


      vm.iframeSize();
      window.onresize=function(){
        vm.iframeSize();
      }
    },
    methods:{
      iframeSize(){
        const oIframe = document.getElementById('iframe');
        const deviceHeight = document.documentElement.clientHeight-230;
        oIframe.style.height = deviceHeight + 'px';
      }
    }

  }

</script>  



